package com.wzdigit.wms.wms.service.core;

import com.wzdigit.wms.basic.domain.dtos.inventory.GetUserWhsZoneWorkDivisionDto;
import com.wzdigit.wms.basic.client.response.basic.UserWhsZoneWorkDivisionResponse;
import com.wzdigit.wms.basic.mapper.core.basic.UserWorkDivisonMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工作分工
 * @author yangdongjie
 * @DivisionOfLaborService.java
 * @2021年3月11日下午1:57:22
 */
@Service
public class WorkDivisionCoreService {
	
	@Autowired
	private UserWorkDivisonMapper userWorkDivisonMapper;
	
	/**
	 * 根据相关参数获取工作权限的用户
	 * @param dto
	 * @return	【用户ID、账号、用户名、仓库/库区】
	 */
	public List<UserWhsZoneWorkDivisionResponse> getUserWhsZoneWorkDivision(GetUserWhsZoneWorkDivisionDto dto) {
		return userWorkDivisonMapper.getUserWhsZoneWorkDivision(dto);
    }
}
